#include "stdafx.h"
#include "session_manager.h"

#ifdef WIN32
#ifdef _DEBUG
#pragma comment(lib, "libprotobufD.lib")
#else
#pragma comment(lib, "libprotobuf.lib")
#endif 
#endif

CPlayerSessionMgr::CPlayerSessionMgr(void)
{
}


CPlayerSessionMgr::~CPlayerSessionMgr(void)
{
}

void CPlayerSessionMgr::on_accept(utility::network::session * pSession)
{
	CPlayerSession * _ptr_session = m_oFreeSessionPool.construct(pSession);
	pSession->set_event_handler(_ptr_session);
}

void CPlayerSessionMgr::ReleaseSession(CPlayerSession * pPlayerSession)
{
	m_oFreeSessionPool.destroy(pPlayerSession);
}
